package com.snow.constant;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @author: snow
 * @Date: 2020-01-19
 **/

@Component
public class Webconst {
    /**
     * 一些网站的配置
     */
    public static  Map<String,String> initConfig = new HashMap<>();
    /**
     * session的key
     */
    public static String LOGIN_SESSION_KEY="login_user";
    public static final String USER_IN_COOKIE="S_L_ID";
    /**
     *aes加密加盐
     */
    public static final String AES_SALT = "0123456789abcdef";

    /**
     *最大获取文章条数
     */
    public static final int MAX_POSTS = 9999;
    /**
     *最大页码
     */
    public static final int MAX_PAGE = 100;
    /**
     *文章最多可以输入的文字数
     */
    public static final int MAX_TEXT_WORDS = 200000;
    /**
     * 文章标题最多可以输入的字数
     */
    public static final int  MAX_TITLE_WORDS = 200;
    /**
     *点击次数超过多少次记录到数据库
     */
    public static final int MAX_HTT_EXCEED = 10;
    /**
     * 上传文件最大1M
     */
    public static Integer MAX_FILE_SIZE = 1048576;

    public static Integer HITS_CACHE = 10;


}
